package com.eorchis.module.trainingneeds.domain;

import java.math.BigInteger;
import java.util.Date;

import com.eorchis.utils.DateUtil;
import com.eorchis.utils.utils.PropertyUtil;

/**
 * Title: QueryQuestionnaireBean<br>
 * Description: 查询培训需求调查问卷返回的实体对象<br>
 * @author HuangTF
 * @createDate 2014-2-7
 * @version $Revision$
 */
public class QueryQuestionnaireBean 
{
	private String questionnaireId;//问卷ID
	private String questionnaireName;//问卷名称
	private String questionnaireType;//问卷类型
	private String questionnaireExplain;//问卷说明
	private Date beginDate;//开始时间
	private String beginDateStr;
	private Date endDate;//结束时间
	private String endDateStr;
	private Integer surveyType;//调查方式(1:电子问卷)
	private String userName;//创建人
	private String depName;//创建单位
	private Integer publishState;//发布状态(1:发布 2:未发布)
	private Integer surveyUserNum;//参与调查人数
	private BigInteger surveyUserNumBig;
	
	private Integer surveyObjectType;//调查对象类型   1：全体   2：指定人员
	private Integer planSurveyUserNum;//计划调查人数
	
	public Integer getPlanSurveyUserNum()
	{
		return planSurveyUserNum;
	}
	public void setPlanSurveyUserNum(Integer planSurveyUserNum)
	{
		this.planSurveyUserNum = planSurveyUserNum;
	}
	public Integer getSurveyObjectType() {
		return surveyObjectType;
	}
	public void setSurveyObjectType(Integer surveyObjectType) {
		this.surveyObjectType = surveyObjectType;
	}
	public BigInteger getSurveyUserNumBig() {
		return surveyUserNumBig;
	}
	public void setSurveyUserNumBig(BigInteger surveyUserNumBig) {
		if(PropertyUtil.objectNotEmpty(surveyUserNumBig))
		{
			this.setSurveyUserNum(surveyUserNumBig.intValue());
		}
		this.surveyUserNumBig = surveyUserNumBig;
	}
	public Integer getSurveyUserNum() {
		return surveyUserNum;
	}
	public void setSurveyUserNum(Integer surveyUserNum) {
		this.surveyUserNum = surveyUserNum;
	}
	public String getQuestionnaireId() {
		return questionnaireId;
	}
	public void setQuestionnaireId(String questionnaireId) {
		this.questionnaireId = questionnaireId;
	}
	public String getQuestionnaireName() {
		return questionnaireName;
	}
	public void setQuestionnaireName(String questionnaireName) {
		this.questionnaireName = questionnaireName;
	}
	public String getQuestionnaireType() {
		return questionnaireType;
	}
	public void setQuestionnaireType(String questionnaireType) {
		this.questionnaireType = questionnaireType;
	}
	public String getQuestionnaireExplain() {
		return questionnaireExplain;
	}
	public void setQuestionnaireExplain(String questionnaireExplain) {
		this.questionnaireExplain = questionnaireExplain;
	}
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		if(PropertyUtil.objectNotEmpty(beginDate))
		{
			setBeginDateStr(DateUtil.getDateString(beginDate, "yyyy-MM-dd"));
		}
		this.beginDate = beginDate;
	}
	public String getBeginDateStr() {
		return beginDateStr;
	}
	public void setBeginDateStr(String beginDateStr) {
		this.beginDateStr = beginDateStr;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		if(PropertyUtil.objectNotEmpty(endDate))
		{
			setEndDateStr(DateUtil.getDateString(endDate, "yyyy-MM-dd"));
		}
		this.endDate = endDate;
	}
	public String getEndDateStr() {
		return endDateStr;
	}
	public void setEndDateStr(String endDateStr) {
		this.endDateStr = endDateStr;
	}
	public Integer getSurveyType() {
		return surveyType;
	}
	public void setSurveyType(Integer surveyType) {
		this.surveyType = surveyType;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public Integer getPublishState() {
		return publishState;
	}
	public void setPublishState(Integer publishState) {
		this.publishState = publishState;
	}
	
}
